package com.ff.xyh.feign.client.dictionary;

import com.ff.xyh.common.entity.dictionary.ActionType;
import com.ff.xyh.common.entity.result.ResultMessage;
import com.ff.xyh.common.entity.result.ResultObject;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther FF
 * @Date 2023年 05月 25日
 * @Time 01:47
 */

@FeignClient(value = "consumer-dictionary", contextId = "ActionTypeClient")
@RequestMapping("/dictionary")
public interface ActionTypeClient {

    @ApiOperation(value = "获取所有消息行为类型")
    @GetMapping("get-action-type-all")
    ResultObject getAllActionType() ;

    @ApiOperation(value = "根据id获取消息类型")
    @GetMapping("get-action-type-id")
    ResultObject getActionTypeById(
            @RequestParam(name = "id") Integer id) ;

    @ApiOperation(value = "根据id删除消息类型")
    @GetMapping("delete-action-type-id")
    ResultObject deleteActionTypeById(
            @RequestParam(name = "id") Integer id) ;

    @ApiOperation(value = "添加消息类型")
    @PostMapping("insert-action-type")
    ResultObject insertActionType (
            @RequestBody ActionType actionStatus) ;

    @ApiOperation(value = "修改消息行为类型")
    @PostMapping("update-action-type")
    ResultObject updateActionType(
            @RequestBody ActionType actionStatus) ;
}
